#include "process.h"
char sysle[S_NUM] = {'-','.','#','>','<'};
int N = 3;
void ProcessOn()
{
    int cnt=0;
    char arr[NUM];
    memset(arr,'\0',sizeof(arr));
    const char* p = "|\\-/";
    while(cnt<=100)
    {
        printf("[%-100s][%d%%][%c]\r",arr,cnt,p[cnt%4]);
        fflush(stdout);
        arr[cnt++]=sysle[N];
        usleep(50000);
    }
    cout<<endl;
}
